package com.cci.kangdao.dao;

import com.cci.kangdao.dao.model.MailBoxT;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

@MapperScan
public interface MailBoxTDao {
    int deleteByPrimaryKey(Long id);

    int insert(MailBoxT record);

    int insertSelective(MailBoxT record);

    int insertBatch(List<MailBoxT> mailBoxTList);

    MailBoxT selectByPrimaryKey(Long id);

    Integer getUnReadMessageCountByReceiverId(Long receiverId);

    List<MailBoxT> getMessageListByCondition(MailBoxT mailBoxT);

    int updateIsReadByReceiverId(@Param("receiverId") Long receiverId,@Param("updator") Long updator,@Param("updateTime") String updateTime);

    int updateByPrimaryKeySelective(MailBoxT record);

    int updateByPrimaryKey(MailBoxT record);

    int insertBatchBySql(MailBoxT mailBoxT);
}